<%@ page import="cardbs.domain.Department" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Εισαγωγή οχήματος</title>
<script type="text/javascript">
<!--

function validate_form ( )
{
    valid = true;
	if (document.insertVehicle.surname.value =="" || document.insertVehicle.customerName.value =="" || document.insertVehicle.telNo.value =="" || document.insertVehicle.AFM.value =="" || document.insertVehicle.email.value =="" || document.insertVehicle.street.value =="" || document.insertVehicle.streetNo.value =="" || document.insertVehicle.city.value =="" || document.insertVehicle.postalCode.value =="" || document.insertVehicle.trafficNo.value =="" || document.insertVehicle.registrationNo.value =="" || document.insertVehicle.model.value =="" || document.insertVehicle.colour.value =="" || document.insertVehicle.builtYear.value =="" || document.insertVehicle.brand.value =="") 
    {
        alert ("Παρακαλώ συμπληρώστε όλα τα πεδία" );
        valid = false;
    }
    
    return valid;
}

//-->
</script>
</head>
<body>
 <FORM Name = "insertVehicle" action="/car-dbs-implementation/CreateNewCarServlet" onsubmit="return validate_form()" method="post">
 <div align="center">
<jsp:include page="exitPage.jsp"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
					<td width="32%"><img
						src="../../images/loginPages/ΕισαγωγήΟχήματος.png" alt="Service A.E."
						width="260" height="228" /></td>
					<td style="width: 206px" width="842">
<h2>Παρακαλώ εισάγετε τα στοιχεία του πελάτη:</h2>
 <br>
   <table width="60%">
  <tr>
    <td width="12%">
    <td>Όνομα: </td>
    <td><input type="text" name="customerName"></td>
  </tr>
    <tr>
    <td width="12%">
    <td>Επώνυμο: </td>
    <td><input type="text" name="surname"></td>
  </tr>
    <tr>
    <td width="12%">
   <td>Τηλέφωνο:</td>
    <td><input type="text" name="telNo"></td>
  </tr>
  <tr>
    <td width="12%">
    <td >A.Φ.Μ.:</td>
    <td><input type="text" name="AFM"></td>
  </tr>
    <tr>
    <td width="12%">
    <td>Email: </td>
    <td><input type="text" name="email"></td>
  </tr>
   <tr>
    <td width="12%">
    <td>Οδός διαμονής: </td>
    <td><input type="text" name="street"></td>
  </tr>
  <tr>
    <td width="12%">
    <td>Αριθμός οδού: </td>
    <td><input type="text" name="streetNo"></td>
  </tr>
  <tr>
    <td width="12%">
    <td>Πόλη: </td>
    <td><input type="text" name="city"></td>
  </tr>
  <tr>
    <td width="12%">
    <td>Τ.Κ.: </td>
    <td><input type="text" name="postalCode"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </table>
  
  <h2>Παρακαλώ εισάγετε τα στοιχεία του οχήματος του πελάτη:</h2>
 <br>
   <table width="60%">
  <tr>
    <td width="12%">
    <td>Αριθμός κυκλοφορίας: </td>
    <td><input type="text" name="trafficNo"></td>
  </tr>
    <tr>
    <td width="12%">
    <td>Αριθμός πλαισίου:</td>
    <td><input type="text" name="registrationNo"></td>
  </tr>
    <tr>
    <td width="12%">
   <td>Μοντέλο:</td>
    <td><input type="text" name="model"></td>
  </tr>
  <tr>
    <td width="12%">
    <td >Χρώμα:</td>
    <td><input type="text" name="colour"></td>
  </tr>
    <tr>
    <td width="12%">
    <td>Έτος κατασκευής: </td>
    <td><input type="text" name="builtYear"></td>
  </tr>
    <tr>
    <td width="12%">
    <td>Μάρκα: </td>
    <td><input type="text" name="brand"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </table>
  </td>
  </tr>
  </table>
  <table width="50">
  <tr>
 
  <td width="15%" width="76">
					<input TYPE="submit" VALUE="Εισαγωγή νέου οχήματος" style="width: 193px">
					</td>
					<td width="5%" width="56">
					<a href="/car-dbs-implementation/uipages/firstPagePages/HeadmasterViewLoginPage.jsp"><img src="../../images/CancelButton.png" style="border:1px solid black;"/></a>
	</td>
</tr>
</table>

</div>
</FORM>

</body>
</html>